package com.biz.primus.ms.coupon.trans;

import com.biz.primus.common.utils.CopyUtils;
import com.biz.primus.model.coupon.vo.couponType.CouponTypeDetailVo;
import com.biz.primus.ms.coupon.dao.po.CouponType;
import com.google.common.base.Function;

/**
 * 转换器 CouponType -> CouponTypeDetailVo
 *
 * @author david-liu
 */
public class CouponType2CouponTypeDetailVo implements Function<CouponType, CouponTypeDetailVo> {

    public CouponTypeDetailVo apply(CouponType couponType) {
        CouponTypeDetailVo couponTypeDetailVo = new CouponTypeDetailVo();
        CopyUtils.copyProperties(couponType, couponTypeDetailVo);
        return couponTypeDetailVo;
    }
}
